<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加</title>
<style>
	h2{
		text-align:center;
	}
	form{
		width:30%;
		margin:0 auto;
	}
	table,#operate{
		width:80%;
		margin:0 auto;
	}
	tr,td,th,table{
		border:1px solid silver;
		border-collapse:collapse;
	}
</style>
</head>
<body>
	<h2>发布新的考试</h2>
	<!-- action提交路径，这里我们提交到一个servlet路径 -->
	<form action="quiz?op=add" method="post">
		<table>
			<tr>
				<td>考试名称:</td>
				<td><input type="text" name="qName"/></td>
			</tr>
			<tr>
				<td>开始时间:</td>
				<td><input type="datetime-local" name="startTime"/></td>
			</tr>
			<tr>
				<td>结束时间:</td>
				<td><input type="datetime-local" name="endTime"/></td>
			</tr>
			<tr>
				<td>状态:</td>
				<td>
					开始&nbsp;<input type="radio" name="status" value="true"/>
					结束&nbsp;<input type="radio" name="status" value="false"/>
				</td>
			</tr>
			<tr>
				<td>关联试卷:</td>
				<td>
			<!-- 	<input type="text" name="pId"/> -->
				<select name="pId">
					<c:forEach var="u" items="${us }">
						<option value="${u.pId }">${u.pName}</option>
					</c:forEach>
				</select>
				</td>
			</tr>								
			<tr style="text-align:center">
				<td colspan="2"><input type="submit" value="提交"/></td>
			</tr>
		</table>
		
	
	</form>
</body>
</html>